<template>
  <el-dialog :model-value="show" title="全景预览" width="800px" @close="closeDialog">
    <PreviewSimple :material-id="materialId"></PreviewSimple>
  </el-dialog>
</template>

<script lang="ts" setup>
import PreviewSimple from './PreviewSimple.vue'

defineProps({
  show: Boolean,
  materialId: Number
})

const emit = defineEmits(['update:show']);

const closeDialog = () => {
  emit('update:show', false);
}

</script>